<#import "body.ftl" as com>
<@com.body title='博客设置 - Miniblog4j' setting='active'>
<#if msg??>
	<div class="in">
		<h2>${msg}</h2>
	</div>
	<div class="line"></div>
</#if>
<div class="in">
	<form name="settingForm" method="post" action="/admin/setting" onsubmit="checkSetting()">
		<input type="hidden" name="oper" value="save" >
		<input type="hidden" name="userId" value="${admin.id}" >
		
		<p>
			<label class="comment">// 博客名称</label><br>
			<input type="text" name="blog_name" class="box2" autocomplete="off" value="${blog.getOption('blog_name')!''}">
		</p>
		
		<p>
			<label class="comment">// 博客描述</label><br>
			<textarea name="blog_description" rows="1" cols="1" class="box2" style="height: 100px;">${blog.getOption('blog_description')!''}</textarea>
		</p>
		
		<p>
			<label class="comment">// 博客公告</label><br>
			<textarea name="blog_notice" rows="1" cols="1" class="box2" style="height: 100px;">${blog.getOption('blog_notice')!''}</textarea>
		</p>
		
		<p>
			<label class="comment">// 主题</label><br>
			<input type="text" name="theme" class="box2" autocomplete="off" value="${theme}">
		</p>
		
		<p>
			<label class="comment">// 用户昵称</label><br>
			<input type="text" name="name" class="box2" autocomplete="off" value="${admin.name!''}">
		</p>
		
		<p>
			<label class="comment">// 登录密保(不修改留空)</label><br>
			<input type="password" name="password" class="box2" autocomplete="off">
		</p>
		
		<p>
			<label class="comment">// Email</label><br>
			<input type="text" name="email" class="box2" autocomplete="off" value="${admin.email!''}">
		</p>
		
		<input type="submit" class="com_btn" value="保存">
	</form>
</div>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript">
	function checkSetting() {
		return true;
	}
</script>
</@com.body>